
<pre class="docs-method-signature"><code>element.toJSON()</code></pre>
<p>Return a copy of the element's attributes for JSON serialization. This can be used for persistance or serialization. Note that this method doesn't return a JSON string but rather an object that can be then serialized to JSON with <code>JSON.stringify()</code>.</p>
